package com.example.sdemo.app.service;

import com.example.sdemo.domain.entity.Course;
import com.example.sdemo.domain.entity.Score;
import com.example.sdemo.domain.entity.Student;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StudentService {
    Student selectById(Integer id);
    List<Student> selectAll();
    Boolean insert(Student student);
    Boolean delete(Integer id);
    Boolean update(Student student);
    //查询某一学生所有课程及成绩
    List<Score> selectScoreByStudentId(Integer id);
    //查询某一学生所有课程
    List<Course> selectCourseByStudentId(Integer id);
}
